import request from '@/utils/request'

const api = {
    yearCardList: '/yearCard/lists',
    yearCardAdd: '/yearCard/add',
    yearCardEdit: '/yearCard/edit',
    yearCardPutaway: '/yearCard/putaway',
    yearCardDownfall: '/yearCard/downfall',
    yearCardDel: '/yearCard/delete',
    yearCardPriceList: '/yearCardPrice/lists',
    yearCardPriceAdd: '/yearCardPrice/add',
    yearCardPriceEdit: '/yearCardPrice/edit',
    yearCardPriceDel: '/yearCardPrice/delete',
    yearCardOrder: '/yearCardOrder/lists'
}

export function yearCardOrder (parameter) {
    return request({
        url: api.yearCardOrder,
        method: 'get',
        params: parameter
    })
}

export function yearCardPriceDel (parameter) {
    return request({
        url: api.yearCardPriceDel,
        method: 'get',
        params: parameter
    })
  }

export function yearCardPriceEdit (parameter) {
    return request({
        url: api.yearCardPriceEdit,
        method: 'post',
        data: parameter
    })
}

export function yearCardPriceAdd (parameter) {
    return request({
        url: api.yearCardPriceAdd,
        method: 'post',
        data: parameter
    })
}

export function yearCardPriceList (parameter) {
    return request({
        url: api.yearCardPriceList,
        method: 'get',
        params: parameter
    })
}

export function yearCardDel (parameter) {
    return request({
        url: api.yearCardDel,
        method: 'get',
        params: parameter
    })
}

export function yearCardPutaway (parameter) {
    return request({
        url: api.yearCardPutaway,
        method: 'post',
        data: parameter
    })
}

export function yearCardDownfall (parameter) {
    return request({
        url: api.yearCardDownfall,
        method: 'post',
        data: parameter
    })
}

export function yearCardEdit (parameter) {
    return request({
        url: api.yearCardEdit,
        method: 'post',
        data: parameter
    })
}

export function yearCardAdd (parameter) {
    return request({
        url: api.yearCardAdd,
        method: 'post',
        data: parameter
    })
}

export function yearCardList (parameter) {
    return request({
        url: api.yearCardList,
        method: 'get',
        params: parameter
    })
}
